package com.lagou.io;

import java.io.InputStream;

public class Resources {

    /**
     * 通过配置文件的路径，将文件读取成字节输入流存储在内存中
     * @param path
     * @return 字节输入流
     */
    public static InputStream getResourcesASStream(String path){
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }

}
